import React, { ReactNode } from 'react';
import { Tabs } from 'antd';
import { RiskNav } from '@/components';
import Inquiry from './inquiry';
import UpdateCom from './update';
import { StateType } from '@/common-typings';
import style from './index.less';

const { TabPane } = Tabs;

// 外部风险查询
class RiskInquiry extends React.PureComponent<StateType> {
  public render(): ReactNode {
    return (
      <div className={style.riskExternalInquiryWrap}>
        <RiskNav parentLevelText="风控管理" currentLevelText=" 外部风险查询" />
        <Tabs defaultActiveKey="1" tabBarGutter={10}>
          <TabPane tab={<span className={style.tab}> 查询 </span>} key="1">
            <Inquiry />
          </TabPane>
          <TabPane tab={<span className={style.tab}>更新</span>} key="2">
            <UpdateCom />
          </TabPane>
        </Tabs>
      </div>
    );
  }
}

export default RiskInquiry;
